Use correct function to query type alignment.

Directly reading tp->align breaks (at least) for array types.