Add checks for None values.

This enables us to convert values to numpy arrays, but also
ignore None values which create a numpy.array with a single
integer value (8 bytes).