fix deprecated use syntax (foo as bar instead of bar=foo)

Unlike #235 this replaces all instances of the `use as`.