Generic helpers for the Closure Library