Backport Fix #1090: Allow exporting classes and modules ending in _=

(cherry picked from commit feab5ae4f6e801509f028a15731d65d8ac909dc8)