write_impl was re-implemented
minor fixes
correct determination of the size of a record in chunked-write
move success_copies constants into enum and Helper to anonymous namespace