Fixed comparison operators in BBox Case.

Bitwise or was used by accident.
Allowed for function-type expression in the filter query

Currently, only distance is allowed. The functionality is yet to be
implemented.
Fixed Filter wrapper segfaults and reformatted the code.