ctools: fix autoheader bug for functions without arguments