Added a call to collect garbage before allocating rasters to numpy
QGIS 2.0 support updates. See issue #462