Restore low-level _find_definition, and various fixes: Tests working again.