EvaluateShapeAtQP and related stuff in ElemType