Fix #1370: use stack instead of heap for local arrays

6 jobs for !1985 with fix1370 in 15 minutes and 10 seconds (queued for 1 second)
detached
Status Job ID Name Coverage
  Build
passed #19871
macos
build_macos

00:04:41

passed #19872
ubuntu1604
build_ubuntu1604

00:00:58

passed #19873
ubuntu1804
build_ubuntu1804

00:03:45

passed #19874
ubuntu1804-gcc8
build_ubuntu1804-gcc8

00:04:11

passed #19875
vc191x
build_vc191x

00:15:09

passed #19876
vc192x
build_vc192x

00:13:43