Fix basic_memorystream.swap