Move toCtype to use Visitor
Merge pull request #3108 from yebblies/toctype

[refactor] Move toCtype to use Visitor
fix Issue 11941 - Errors when appending to aggregate member array in CTFE
Merge pull request #3112 from 9rnsr/fix11941

[REG2.065a] Issue 11941 - Errors when appending to aggregate member array in CTFE