Fix: Merge configs with ancestors (Fixes #820)