expunge all objects on return and prevent them from expiring. both should prevent out-of-dal-function queries.
additional debug code.
make simple_dicts work with circular refs.