Speech generator refactor: Fix import order (PR #11055)
Rather than importing '_flattenNestedSequences' from speech module, use this attribute from speech module. This resolves a situation where NVDA might do something (such as uninstlaling add-ons) when it isn't fully initialized, as evidenced by attribute error in speech dict handler.
Fixes #11052