Function: object-write

Write out object THIS to the current stream.
Optional COMMENT will add comments to the beginning of the output.