Fixed deserialization issues due to missing no-args constructors.