clean_record() for converting record list -> simple vector

 - also added tests

 - helper function get_key: made version for plain list
   as well as the version for a list of lists, which is now called
   get_key_ll