Honor primary_key option in $has_many when eager loading.

Fixes primary_key support when using has_many relationship and eager loading together (#366).