Added a quick test to check the managers behaviour with unique nullable fields. This passes locally with sqlite, let's see what travis has to say about mysql.
Merged test-unique-nullable-fields branch into master.