fix shapefile writing bug and improve performance
provide finer control over data copying and improve performance in extracting
subsets
fix kwarg typo