Fixed several bugs regarding parameter serialization and deserialization.