Use printint functions from SStream (#1165)

in perticular, not to overflow -INT_MIN
9 files changed