fixed other bug in cyclic func remover

actually my assumption, that there can never be function references
pointing to a cycle was completely stupid