Replace underscore with lodash

Replace 2 uses of underscore and 1 use of a lodash submodule with full
lodash module.