removed item setting from within assert statements.

This resolves a bug where, when optimization was on, items
were not being set because the assert statements were being no-oped.

Fixed #40.