Improve genson serialization, as per suggestion by its author