Improved Vendor Attribute De-/Encoding.

- Store format specification for vendors (number of octets for vendor
  type and attribute length) in dictionary.
- Use format specification to correctly de-/encode vendor attributes
  with non-default format.