Add support for log-time key-value maps.

This is primarily done through functions, but (| 0 => 1, 1 => 2 |) can
be used to create maps too.