Add support for generic type arguments in javaType

Closes #151.