Changing handling of distance function overriding.
Merge branch 'master' of github.com:ucb-sejits/stencil_code