Fix method accessors for inherits and abstracts

Closes PR 13798
Restore commented `for` loop

The bug this was blocked on seems to be fixed since the
tests now all pass.