more stable version of msiTestSetMetadataFromJSON: it is based on msiAddKeyVal + msiAssociateKeyValuePairsToObj