Fixed a few warnings from the Dart build script (mostly incorrect type hints that were overlooked in a refactor).