Serialize GenericFile.size as int