Fixes to rasterize geometries - GDAL options

This pull requests fixes a bad pattern for setting options passed to GDAL functions (previous pattern worked fine on windows but caused segfaults on Linux).

Also updates example to use updated parameters for rasterize function.