Handle $ in type names.