[CodeGen] Backport fix for structs with flexible array members as Obj-C ivars.

Follow up to insufficient fix 76e580ab1c32495ae524bbced52af1e63540836b.
This one handles typedefs and nested arrays.

rdar://problem/21054495
2 files changed