fix Issue 12310 - [CTFE] Support heap allocation for built-in scalar types
Merge pull request #3363 from 9rnsr/fix12310

Issue 12310 - [CTFE] Support heap allocation for built-in scalar types