ENH: use IOstreamOption for writeObject() calls.
- reduces the number of parameters that are being passed around and allows future additions into the IOstreamOption with mininal effort.
- reduces the number of parameters that are being passed around and allows future additions into the IOstreamOption with mininal effort.