jshn: fix check to reset array sequence counters on cleanup