Fixed the reduce function to follow a reduce function's rules
Split the tests for the reduce and finalize functions
Emit simpler structures from map now that finalize calculates the percentiles