[polyml] pretty printing infrastructure