Move inferring the relationship type to normalizeRelationships
Make type inferring of hasMany relationship work with options
Add test case for hasMany relationship where type is inferred