fix(transformer): Fixing some analyzer warnings

A couple appear to have crept in, found when integrating into Dart's repo.

Closes #955