Properly handle subpackages of java.lang in compressType.

Previously, all types prefixed by java.lang would have the java.lang prefix
removed even if they weren't in that package leading to invalid types in
the written source.

This fixes issue #39