sfc: Add compile-time checks for correctness of paged register writes