Better array assertions and eventmode=histogram test added