Implemented recursive constant value evaluation.