finish writing radiobutton with hashmap

Not tested yet.

Also made a minor fix in list.{c,h}, making a function declare to return
the correct type (struct list_node *).