fix hasOne when foreignKey#field defined

get include query accessing the foreign key field in th abstract query generator on include queries
unit test added that breaks without the fix
Yep, the way to go is probably to define `identifierField`/`identifierAttribute` when `identifier` is defined.