Fixed metadata serialization
Merge branch '2.0' into 2.1

* 2.0:
  Fixed metadata serialization
[Validator] fixed metadata serialization