Fixed several compile errors in ContractionEvalImpl.