After changing the `_to_value` method to write properties directly (see #3), allow multidimensional arrays and nested lists to be written as metadata.