Method can be whitelisted on the root level of the context or
for arbitrary paths. A special method "*" will allow all methods
to be called.
Examples:
$context->whitelist('myMethod');
$context->whitelist('*');
$context->whitelist(array('String.*', 'Array.reverse'));