cleaned up type traits, added reverse mapping
cleaned up type traits, added reverse mapping

realm/realm-core,realm/realm-core,realm/realm-core,realm/realm-core,realm/realm-core,realm/realm-core,realm/realm-core