Revert "[opaque pointer type] Avoid using PointerType::getElementType for a few cases...