fixing erased primitive types in generics for scala, a lot of ugly code but seems to work...
updating supported scala versions in documentation