Set foreign key if loading belongs_to association

Closes #215.