replace "fill" with "reset"
move ArrayUtils.reset method to StateMachine#clear