fix lodash generic types

closes #1847