Changes to make the CaptureChangedRecordsFilter work with numbers

First draft on making the filter work under the hood on long values.

Fixes #63.
Convention-wise we don't use underscore for local variables, but it's no biggie.