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
Yea, I was thinking that would make sense. At first I was going to modify the creation of `identifier` but that would mess a lot of other things up. 

Another option would be to define an `identifierAttribute`...