bugfix generics
improve Bonscript validator