Moved the recursive array diff function into the GxActiveRecord component for better modularity