Ported three PrintObject methods to XS