Fix problem with Object properties being used as one-to-many association ends.

Updated test to check this case.