Call type getXXX methods via invokedynamic

Using invokeStatic/invokeVirtual is problematic because they rely on symbolic
references to the type class. For types provided by plugins, the VM might not be
able to "look up" the class when loading the bytecode.