This is done by first running the C# spec algorithm for "FindTypeInBounds" before trying the improved algorithm.