Infer the property on has_many. Fixes #142