key/key-io.c: Add low-level `key_mergeline' and `key_extractline' functions.