Use IsAlignedParam for variable page size

This patch is part of the chain preparing for making kPageSize
non-constexpr in a future patch.

Since kPageSize is going to be a non-constexpr value, it can't be a
template parameter anymore. Consequently IsAligned<kPageSize>(...)
expressions have to be replaced with IsAlignedParam(..., kPageSize).

Test: Same as for I5430741a8494b340ed7fd2d8692c41a59ad9c530.
      The whole patches chain was tested as a whole.
Change-Id: Ic79f26c3f9b87d7153e02071cc59ec0a0f1f8e16
6 files changed