Fix sessions using newTempBase or collections
Fixes after https://lab.nexedi.com/nexedi/erp5/merge_requests/1451
With the RAM implementation it was possible to use in session:
- list or dict of temp documents
- temp documents created with
newTempBase
( not justnewContent(temp_object=True, ...)
)
This repairs these two use cases.