[polyml] Poly/ML codetree generation