delegate: fix conversion of returned value into python (invalid pointer dereference, means we wasnt able to use any object from delegate arguments) + basic support for tagged pointer