Implement isAligned() without using alignmentLog2()
... and move alignmentLog2() closer to its use.
IIRC I intentionally implemented isAligned() like that so that
the (since removed) assertions in alignmentLog2() validate the
alignment value. It was not very necessary, slightly slower, and
in any case the assertions are gone.