Add support for metamodels variants which got lost in the transition to DCG 2.0.