Casts of java objects are now checked
Simplify metaClass access
Add back some tests
Rename JObject