f101e5a336
To make sure that the correct version and flags are preserved during metadata transformation, they are now stored inside KotlinClassMetadata. Such change also makes it possible to make write() a member function of KotlinClassMetadata, further simplifying API. Also, it allows tracking whether readStrict or readLenient was used to read metadata and prohibit writing accordingly. Also provide transform() method as a shortcut for readStrict+write. Related to: #KT-59441