core: align stack on a 32bit boundary

Fixes #1267.
I think these are the "problematic" lines (that would waste 2 bytes on platforms that don't need 32bit alignment - if there are any).