The decodepsbt incorrectly truncates the (32 bit) sighash type field before looking up its human friendly name. It's not dangerous, as such a signature would be invalid, but potentially confusing.
Fix that and add a test.
I plan to use SighashToStr in another pull request to render an error message for invalid sighash type field values, but it seemed worth fixing in a standalone PR.