Fix how YAML I/O detects flow sequences.
Update test case to verify flow sequence is
written as a flow sequence.