Fixes javawrapper_unwrap_instance for JavaClass

Previously, would only unwrap JavaInstance objects.
Implements reference comparison