implement Context.typeof with Context.typeExpr and remove internal api function