[runtime] Handle custom attributes with nested array of enums. Fixes #13767

When decoding a custom attribute value, an array value in an object
position can have type of an enum.