Implement dumping of chunked shares and fix system tests. fixes #1959

Signed-off-by: Daira Hopwood <david-sarah@jacaranda.org>