HPCC-8486 Optimize DICTIONARY(null-dataset)

Also adds support for EXISTS(dictionary) and optimizes the null case.

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>