Added StreamOutput.writeOptionalStreamableOnOrAfter()

This method supports to specify a version, which is going to be checked
in order to prevent the longer if-statements usually used in the
writeTo() methods.