Add pretty printing for types, literals and locations.