added test case (without fix) for a pact compiler bug with ALL_GROUP-reducer.
Implemented AllReduce.
Cleaned up warnings in pact-common.