fix bug in a few variant types, such as the wstring type, where an explicit length of zero caused it to act like a sized-wstring (WORD prefix for length).