Simplifying createArrayType recursion check.

I made these changes during some unrelated experiments but I'd like to keep them.