val: use a switch statement for typename dumping
val: use a switch statement for typename dumping

When we add a new val type, a switch statement will generate a warning about
an unhandled enum value.

Signed-off-by: Josef 'Jeff' Sipek <a620f141433c70aa9e43778305a6c68cbfadfb25@josefsipek.net>

jeffpc/libjeffpc,jeffpc/libjeffpc,jeffpc/libjeffpc,jeffpc/libjeffpc