Fix animation bugs

There were a few bugs with ReactTransitionGroup related to CSS animation events; these are fixed.