Don't export nameless variables and classes.
Don't export decls that are inside a template context.
Dont export template functions.