The macro psbt_with_values is used by the psbt test module. Since there is no pre-processing required, there is no reason to use metaprogramming here, so this commit moves the logic from a macro to common function in the test module.