Add returning reference support

The old implementation of PHP-CPP do not support returning reference, but now it can.

for example:

    myNamespace.add("myFunction", myFunction, {}, true);
    myClass.method("myMethod", myMethod, {}, true);