fix equalValues function

`value === values[0]` did not work for array comparison, it was replaced by `_.isEqual`