Update to gradle 2.1
Add generic TypeVisitor.