Simplify initialization of @EXPORT_* variables

Simplifiy the initialization of the EXPORT_* variables used by Exporter.

With a test suite.