Add a term type with unpacked IORefs.

Seems to make things a bit slower.