Ensure to namespace function/class declarations from export default.

Without this these function names may collide with functions of the same name in other modules.