support different equality predicates

Signed-off-by: Jan Dvořák <mordae@anilinux.org>