Improved export out of bricks (bugfixing, added cluster info for header
bricks); fixed #1704