fix Issue 12769 - ICE returning array
Merge pull request #3559 from 9rnsr/fix12769

[REG2.065] Issue 12769 - ICE returning array
fix Issue 12749 - Constructor-local function allows multiple mutation of immutable member
Improve diagnostic messages