Add push/pop tmpstorage views.
Reorder tmpstorage functions.