constify some print and ts functions
11 files changed