Making signatures more generic for EventGraph and EventTrie