Replace System.err with logger.

Signed-off-by: Clement Escoffier <clement.escoffier@gmail.com>
Fix #278

Filters where never removed form the set, because they were never equal according to the comparator.

Signed-off-by: Clement Escoffier <clement.escoffier@gmail.com>