Fixed a memory leak when returning a Php::Object with an already allocated Base