interp: Switch to template functions

Now that value conversions are proper functions, switch to template
functions to get rid of macro magic.

Signed-off-by: Pekka Enberg <penberg@kernel.org>