Fix copy-term.

- build-term for vars seemed out-of-date,
- build-term needs to be implemented for all collections (including
  vectors), not just seq.