Correctly rewrite class descriptors

The previous code only changed the name of the class the class
descriptor refers to, but not class names appearing in field signatures.