Add support for isnull on key/value pairs

Builds of off #72 because it also needs to make use of `value_annotations`, but if #72 doesn't get merged this could easily be split off.