Fixed an issue where an extra bit was set when adding an element to the filter.
Filter type now statically checked w.r.t element type.