define macro __to_stream__ to simplize declearing a class is streamlizable and its streamlize function.