Fix bugs in APS compiling with varients.

Two important changes: update an assertion to match MIN_LL_COUNT = 2, and in
preprocessEntry(), update entry lengths to their padded size.