terminfo: Fix return values in assertions
widget: Fix debug printf string

Use G_GSIZE_FORMAT.
pty: Fix introspection annotation typo