Added logic for evaluating default MathContext from cp.