pretty-print literals correctly