rewrites #root method as ActiveRecord association

When defined as ActiveRecord association, root can be preloaded in search queries for better performance.
```
Tag.includes(:root).where( ... )
```