Changed UsageCount and generationThreshold to zero based.
Added GetTypeFullName, fixes wrong nullable valuetype names.
Replaced incorrect bool.ToString() by GetLiteral(bool).
Added missing XmlTypeMapping.IsAny logic.
This complements commit 05444c7c1c570db730f17b6d15dd66d3728b6.
Fixed serialization of XmlNode field with attribute XmlAnyElement.
Fixes #3211.