Patching core to handle recursive array_diff_assoc calls