Added Sequence handling to FlattenedSequence.
adding spec for flattening nested sequences

current implementation needs a bit of tweaking
modified flatten implementation a bit more, added another spec