More va_arg fixes.

Make sure that capabilities are 32-byte aligned and that int is promoted to long.