Add support to automatic nested table export (TYPE+TABLE+COPY).