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

this didn't work, this commit fixes that