Making enum serialization work in the whole app.