Use the minimum allowable type size to save memory.

Incremental progress in #162.