changed entitymanager to sortbyzindex on update and support generic hash of settings, changed scene to support hash of settings