Convert Accumulator to take a BlockBuilder

Follow https://github.com/facebook/presto/issues/2042
And static import `toImmutableList()`. Nice to finally be on Java 8!