Support for getting constants using 'self' and 'parent' contexts