Add test for maparray() for bug in redmine #5452