Simplifying createArrayType recursion check.
I made these changes during some unrelated experiments but I'd like to keep them.
Merge pull request #408 from Microsoft/globalArrayType

Simplifying createArrayType recursion check.