Fix normalizeSideloadMappings() in the JSON adapter

This is an important fix needed to resolve custom mappings for relationships declared as strings instead of types.

Also included is some unrelated cleanup to a test.