Cleanups.

- Check flags != 0
- Typo fix.
- Alignment.
- More #if !noinline …
Add #if FlashTrace, 

Btw: Didn't we have this before? Where'd it go?!
QueueManager reviewed.

Remove double null setting.
Add assert where it should be null.