Get rid of terrible way for iterating over provided methods.
Remove some essentially dead code in method handling.
Fix some tests in rustpkg to not pollute the build directory. Closes #7278.
Get rid of cast on every self reference.
auto merge of #7382 : msullivan/rust/cleanup, r=bblum