Stream object over IO using Marshal, JSON, YAML, or Msgpack.