Wrote carry_dict serialsize and fserialize functions.