fix(flatten): two level namespaced classes correctly flattened