goog.array.flatten suggestion