NestedKeyArray class: access a multidimensional array through nested keys