add support for <{..}> and ~~> syntax as well as typing for Kappa-calculus