nil tests for primitive datatypes