Change Set::has() to a simple array to hash map for checking inclusion