Added support to write an empty structure array

An empty structure array corresponds to a 'named list()' in R