[FEATURE] Support namespaces and vendor prefixes in class names

Including a number of other fixes