added support for applying functions in dot path.  also check the
context.global when calling getPath