fixes #5 and #7: rules_for returns RuleSet (which is empty if nt not in productions)