Fix extensible rule AST creation.