Updated contextualization

* Added public key support for ON4+
* Fixed context var validation