[831] Write unsupported data types in writeVariantHash() as invalid

* This prevents crashes in current version if these types get
  implemented in future versions.