Fix dynamic proxy unref() so that it can be called from Js and Java.
Add 'invocationHandler' js field to dynamic proxies which returns the original 'functions' object.