fix recursion in Rule.hashCode()
fix recursion in Rule.equals()
Merge pull request #5 from hjanetzek/fix_rule_recursions

Fix rule recursions