Improve FiniteSet._contains

@hargup