test sql.Null... types as foreign key IDs

this didn't work, this commit fixes that
Merge pull request #27 from univedo/sqltypes

test sql.Null... types as foreign key IDs