move _shpfuncs to shp
allow nan values in Metadata arrays