Fix kvl, keys and vals function to deal with one-item lists.

Add examples of processing lists of key/value lists.