Bug fix in copying popActions and sharing alternates.
the check for nonterminal head added to firstLevelFilter