Utility functions for defining and traversing namespaces, including getting and setting values at the end of a namespace