fix ctypes test alignment assumptions (closes #20946)

Patch by Andreas Schwab.
improve set_tunnel docs (closes #11448)

Patch by Ryan Kelly, karl, and Nikolaus Rath.