test/core/pathGatherer.js: Fixed bug in 'areArraysEqual' function