Gave TypeElement Structural Equality.
Added XML documentation.