support specifying the field of a foreign key for mssql

The MSSQL dialect implements its own sql generator, and was accidentally adding an extra raw attribute for an aliased field. Apologies for the whitespace changes, the editor has a mind of it's own! I can resubmit without them if it's a pain.