Fixed search by empty field values for number and date types.
Added tests for these fixes.
Added test for fixed empty field search.