Shorter (compressed) encoding of method signatures.

The new encoding is inspired by the internal encoding
of JVM method descriptors, with additional shortcuts
for Object and String.

This reduces the size of the generated code by 7 %.