Resolve functions in an object to values