Issue 415: 2.3.2.0-SNAPSHOT implementation of state.reset() seems to be incorrect

This fix the use of behaviors on buttons with Firefox, with hopefully no side-effects.