Output exception message if value is compared to NULL in search.
Test case for comparison to NULL with generic operators.
Fixes typo in docstring.