For Mem[Aggregate], use toBits before writing