Add support to handle NaN values inside arrays. Thanks @glenebob for heads up.

Add tests for Float array.