primary_key support for belongs_to and belongs_to_active_hash.