Fixes #2773 -- tricky dependency ordering when overriding bound functions.