cleanup(various): Eliminate warnings, dead code

In dart (x is! dynamic) is always false, so this is dead code.