Fix memory leaks on object decodes in appends