fix: vault statistics

a function called map_field is introduced which allows to specify
type format.