Clean up and small fixes with features.

This pull request fixes an additional issue with the rasterizer.  If polygon does not intersect raster extent, skip.  Additionally, this commit removes an extraneous debugging println.  It also includes a temporary reimplementation of AsPolygonSet to get around a scala reflection bug.