Fixed issue #138
Merge pull request #139 from SamMousa/master

Type name generation should respect namespace