Fixed number of consecutive numbers, and added tests.
Simplify code and remove assert for seq when using VC++.
Updated use of assert macros.