Bugfix for eager loading has-many associations.

When eager loading has-many/has-one associations that specify a
custom primary_key, the relationship was ignoring that and using the
model's primary key value instead.