Analyze: set littleEndian flag correctly

Fixes #12471.
Merge pull request #1266 from melissalinkert/analyze-endian

Analyze: set littleEndian flag correctly