Cast hasMany extra properties with types like 'Object'.
Closes #466