Moved functions that print or convert to string to ToyPrinter.ml to allow printing programs.