Worked a bit more on the schema generator code.

Worked a bit more on the schema generator code.
Added AddIfUnique method that takes in a Func to decide if items are the
same or not.
Added Distinct method for IEnumerables that takes in a Func to decide if
items are the same or not.