Made Behavior serializable

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