Remove no-longer-used arrayEqual, other minor fixes