dclass: When formatting values, attempt to return clean values, also properly check for 0-length var-sized types.