Add missing goog.requires; fix types and a typo