Optimize `_.isEqual` by using `_.keys` and ensure `arguments` objects are compared correctly.