Fixed parser so that inherited members distribute to all classes correctly