Serialization updates

Define `serialVersionUID` on concrete types, add `@SuppressWarnings("serial")` to anonymous types created just for initializing something.