More memory alignment fixes.

Ref.: #420.