terminfo: remove some terminals and shrink db

- Removed + variants of terminals.
- Made db smaller by fixing bug where last terminal was not checked for
  sameness.
- Added some comments to for easy reference to parent indexes.