kaplibs: Allow kpg1_wrcat to store arbitrary headers in the output catalogue