Add failing test for inferring type of hasMany relationship
Draft implementation for inferring type of a hasMany relationship