Keep copy rather than reference to returned object.
Resolves bug report http://www.openfoam.org/mantisbt/view.php?id=1454