Generic class types

Finally I removed the GenericTypeResolver as there is a library [TypeTools](https://github.com/jhalterman/typetools) that is doing the same job.