Tables set all metadata 12606

Fixes setAllMetadata, the last bit of https://trac.openmicroscopy.org.uk/ome/ticket/12606

Also add a workaround for numpy vs Python native types being stored in the table metadata (though I guess there is a danger that tables produced by different servers could use different types for the same thing).