Fix #165 - make explicit which vars are available to templates

As with python modules, if section 2 has an __all__ variable,
only the variables whose names are in that list are 'exported' to
the template.