Added accumulator.compact! before adding to output_hash

A tiny little commit that compacts the accumulator before adding it to the `context.output_hash`. Based on my idea that de-duplification is up to the person writing the code, but no one wants to index a `nil` and shouldn't have to watch out for it themselves.