Fix warnings in directive code

https://github.com/angular/angular.dart/issues/273#issuecomment-28658956

Here's a pull request to fix the warnings, as requested!

Thanks,
Graham