Add a descriptor() API to Type and MethodInfo.

It returns the Jasmin type / method signature descriptor for the
type / method and is used in the Jasmin generator.