Changes to make the CaptureChangedRecordsFilter work with numbers

First draft on making the filter work under the hood on long values.