Fix serialization of int features