[polyml] Update to code-generator and run-time system interface