A map from loci to instances of an arbitrary type where the loci are all on the same contig.
We serialize a Contig as its name, the number of ranges, and the ranges themselves (two longs and a value each).
An immutable map from loci to a instances of an arbitrary type T.
We serialize a LociMap simply by writing out all of its Contigs.