[polyml] Using a finalizer with multiple arguments