[Trivial] Small refactoring

Just a small refactoring as I was going through the code.

I'm not really sure why `static bool empty(AA)(AA aa)` was there in the first place, I guess it was a work around to a compiler bug (introduced in 2012).
Changed to 'serialize'.