Have some failing tests.
And here are some fixes.
Merge pull request #44 from seomoz/phs/fix-a-bug-in-type-names-and-nameless

Phs/fix a bug in type names and nameless