This PR addresses unresolved review comments from #17631. This includes:
- various style fix-ups
- returning a more verbose error message for invalid header counts
- removing superfluous rpc serializations flags for block filters
- improving the test to include comparing the block filters returned from the rest with the ones returned from the
getblockfilter
RPC.