make _.map return an object if an object is passed in