Fixed show-stopping bug.

All FunctionPhase instances were of type MAP.

Added simple ITest for BucketKeyMapReduce.