Metadata as array

When adding metadata, the key cannot be set.

This pull request allows adding metadata as key=>value or just as value.