Check unique rules for null values (fixes #82)

Right branch this time, I hope.