Fix printing of SELECT, SLICE and CONCAT + minor cleanup of the printer.