handle wrong values in attrubutes

For shapefiles with values that cannot be cast to float or int in the attributes the lib dies with a ValueError. I think it's cleaner to then set the value to None. This is consistent with how QGIS handles these shapefiles and should not cause much trouble. 

If this causes trouble it's possible to add a flag to either die on error or set to None.