Validator::context() now accepts single function as parameter

This will result in calling such function with the validator's
instance as context.