handle repeated named fields; fixes issue #17