For rules that include AP-- domains in the scope, the '--' prior to the fixed variable sequence is not correctly generated.
Example:
--TERM defined in a rule for the MH domain is translated to MHTERM, --CAT to MH
However, for APMH, the --TERM is translated to APMHTERM and --CAT to APMHCAT while it actually should be MHTERM and MHCAT. Same is true for APSQ--
CG0013 for example generates output for all variables in the APMH domain.
Issue can be reproduced by using CG0309 but update 'DOMAIN' to '--TERM' and then running CG0309 negative1. Rule gets skipped because column APMHETERM cannot be found.