test SZN_ITERATE
begin writer helper class
header for to_bytes helper
writer methods are inline
simplify the impl of bytes format with to_bytes