Fix colour sequence parsing

1. Fix parsing of XTerm 256 and 24-bit colour sequences.
2. Dynamically expand args for ControlSequences to allow for longer combined sequences.