[Parser] Turned some array allocs into yield-return patterns