underscore flatten behaviour fix