Added .toConstant() to kernel.