Added util.mem_dump for easier ffi debugging.