update typeName and javaFullName to take capnp::Type