Ensure legacy typedef is treated as non-nullable in opt-in libraries. See https://github.com/dart-lang/language/pull/1003/files