[[ Bug 11274 ]] Merge function should ignore square bracket if part of inner expression
Merge branch 'bugfix-11274' into release-6.1.3