Honor primary_key option in $belongs_to

Fixes primary_key support when using belongs_to relationship (#364).