CheckGenome

Worked on checking a sequence before it's decoded.
Things checked:
* Length is appropriate
* Sequence is within allowed range
* Pulses end before phase reset
* Compound torque is within allowed range

Added an AdvSeq method (code was repeated in 2-3 places).

BUG fixed: number of outputs VS number of pulses (used for rendering
torques)