Fix tt_mem_op() demo code; thanks to Gisle Vanem