Fix for issue 777
When QgsFeature::geometry is called from python, by default, a copy of the geometry
is returned and ownership is transferred to python, so it gets garbage collected, and
the qgis application keeps no reference to this copy.