Allow nested ui elements

This pull request allows nested ui elements. For example:

```js
ui: {
  segment: [
    'input[name=seg0_from]',
    'input[name=seg1_from]'
  ]
}
```