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
I'm not sure this is the right way to be doing things. 

Before I was just doing `association.foreignKeyAttribute.field` but this was breaking some other tests because in other circumstances `.foreignKeyAttribute` was `undefined`. I'm not sure when this is the case.