Add a setRef() method for Php::Value.