Refer to field by name instead of index to fix crash in contour tree exmaple.
Fixes a bug in the contour tree example when trying to compute branch decomposition. It seems order of fields has changed and when trying to get the function values, field with index 0 is no longer values but coordinates. This merge request changes the reference by index to one by name to fix this problem/crash.