Fix exception when mapping nested generic classes

If the generic is declared in the outer class and the inner class is
mapped, there is no ` in the name of the inner class.
Test for mapping nested generic classes
Merge pull request #188 from W1N9Zr0/master

Fix exception when mapping nested generic classes