Fix options on has_many and has_one associations

:primary_key and :foreign_key options were ignored.
Closes #75.