fix typo for non-constant field initializers
Infer array length of inline allocated arrays

Fixes bug 644046.