Fixed problems with generating anonymous types, used wrong var type in Equals method.