add testcase for ArrayReduce
solved ticket https://issues.jboss.org/browse/RAILO-2996