Fix group parent logic to allow multi-level inheritence. Fixes #7