Introduced new getBits and setBits methods to filter

This simplifies the previous visitSlotBytes mechanism.

Change-Id: I77dc5310ce906ddc6b7ab0cded73cf2f32e08d0c