Properly zero sections before writing them; Fixes #191