Make arrayEncode encode in legacy format by default
Merge pull request #748 from runrevali/bugfix-12203

Bugfix 12203