Fixed java type registry, closes #20