- fixed to_dict() in filter. did not work with ints (interval)
- added equals and repr
- check for bad operator