Rename APP_ENGINE_MODE to HAS_CTYPES
Make load_session/dump_session compatible with custom modules
Add dumps/loads_session