[runtime] Fix decoding of jagged arrays in custom attributes. Fixes #19825.