Added as_dict metod for FiniteSet

@hargup can you please check this out.