Fix incorrect use of output.dtype

Resolves #195 

Added a test to make sure that we handle rasterize with ```out``` parameter.