encode small tuples and encode small numbers more compactly for symmetry