Does this correctly handle table/list nesting?