Fixed performance issues with Sequence implementations.
Added tests for basic cons list functions.