Codefix: StatefulSequence: cheaper check first

@glen3b, thanks for this code fix - null check first is a good idea.
Also, one more method now documented. :)
TODO: Cleanup magic numbers

@glen3b, if you get a chance, please clean up the magic numbers, as you
suggested. Thanks!