handle nulls going into the enum toJSONValue as part of an array.
test for filtering out nulls when converting an array
Merge branch 'master' into patmoore-master