expose type field accessors

The `type-load` and `type-dump` are probably redundant,
but the `type-value/c` contract is quite useful for RPC libraries.

Signed-off-by: Jan Dvořák <mordae@anilinux.org>