remove weakTypeOfWeakExpr and replaceWeakTypeVar, no longer required