Contextualization support, part II

* added validation on context vars
* updated logging
* updated dependencies