Added templates for handling references.
	modified:   indexed-term.hpp
	modified:   structural-ext.hpp
	modified:   term.hpp