Fix missing dev dependency on lodash
Fix mistaken for-loop iteration on array