Fixes for stricter compiler warnings

Let the compiler know (and have debug mode assert) that p refinement
levels won't exceed 255.

Reorder some data members to avoid struct padding
One more part of that SideIter fix