Rework code for TextInfo/GetTypeInfo patterns to assist PCL support.