Fixed #5497: Support designated initializers in array size detection