ios dialog provider: fix insufficient nil checks
lib: use explicit array initialisation syntax for position table

Also use unsigned char rather than int as the type

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>