Redmine #5452: add acceptance test for maparray()

Tested on 3.5.3 (PASS) and 3.6rc1 (FAIL) release.