Fix types in adapter.

This change allows karma-dart to run on Dartium with checked mode enabled.