(note that assertEqualsDelta knows if something is an array, so you can probably simplify this code.