Use generic update in State

Closes https://github.com/PistonDevelopers/event/issues/216