Redmine#2272: maparray() function
Redmine#2272: maparray() function style cleanup and return failure as needed
add maparray() documentation
Merge remote-tracking branch 'tzz/tz/2272-maparray'