support updating tuple property in setMetadata.

also keep backward compatibility with a whitespace separated string that is provided by old ERP5 code.