[MC] Allow MCObjectWriter's output stream to be swapped out