[polyml] InternalError: asGenReg raised while compiling