Proper application of nodata switch for all cases.

Plus tests to get to 100% coverage.
Initialize img and nodata_mask arrays together.
Merge pull request #234 from mapbox/rio-shapes-nodata

Proper application of nodata switch for all cases in rio-shapes