Separate Type class from java.rb
Make Type.new private