I54

Faster queries when constraining references/collections to be NULL/NOT NULL. Fixes #54.