Fix jpype backend

Fixes #21.

Note that I have removed all tests that require a specific behavior when an object of the wrong type is passed (that's not pythonic)