added support for objects representing Java references in the Prolog side (in the style of JPL)