Fix Support for nested Classes / Name resolution

At the current time it is not possible to use nested Classes for DTOs if
the names are the same.
Example:

public class TestDto{
public class Request{
}
}
Merge pull request #861 from BBSDeadEye/master

Fix Support for nested Classes / Name resolution