Add settingerr context manager.
Improve error messages in assert_eq.