[refactor] replace some redeclaration with the respective imports in gc.d

also remove "pure" from onOutOfMemoryError as for all the redeclarations (see bug 11461)