Added a toDictionary methods
Added a toDictionary method without a valueSelector argument.