Add getNestedList() method

Returns a key-value pair array indicating a node's depth with an optional seperator for filling selectboxes e.g.