Implement and assert on levels() in normal mode.
Assert on levels() in bitwise mode, closes #1.