changed the order in which entity loaders and keys are checked for so keys will be checked for first thus preventing exceptions for missing root object entity loaders