Improve the detection of uppercase classes and check if small cap glyph has correct classes

This is to be improved to better mach classes. Just overwriting the classes is not a good idea. e.g. a Igrave will have "H" as left and right class but igrave.sc might need something else to reduce the number of exceptions.