Change type of nodata vals from double to object.

So that it can be None when needed.