Add conversion from numpy masked to float('nan')