Cherry-picking commits from master to 2.066 branch (for RC1)

[REG2.066a] Issue 13223 - Cannot deduce argument for array template parameters