fix incorrect int type on StateModifications
add random hydrolysis event generator