Fix is_sweepvar, table printing