fixes #6: rules_for() now returns a const reference