Tweaking the array diff a bit more and corrected some tests
5.1.1