[sdb] Fix decoding of nested structs. Fixes #14942.