handle nulls going into the enum toJSONValue as part of an array.
test for filtering out nulls when converting an array