Replace #flatten with Array()

Benchmark: https://gist.github.com/4435213