In behAnimatedState, allowed negative states (32-bit signed int), and silently ignored malformed rules. Made a few comments about awkward spots.