Limit size of typeNames list.

* Logic error in typeNames list construction over-generates values
Merge pull request #8 from hellertime/fix-typeNames-logic

Limit size of typeNames list.