Fix sessions using newTempBase or collections
Fixes after !1451 (merged)
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.