Avoid polluting the substitutions map with recursive refs on collecting generic substitutions MPS-19612