Fix cross-version string types detection.