add resolve_value utility function (re #952)