bugfixes (template expansion, array index not found, CSS styles)

* expand templates and variables on the terminology page, so other pages can be transcluded (bug 55831)
* array-pad element definitions to avoid array indexes not found (follow-up I9a562f1007)
* change CSS class of elements from tooltip to lingo-tooltip to avoid collisions, e.g. with Bootstrap

Change-Id: Icc640545c406aa7b368b83acd40bb8a9ea779bb6
Merge "bugfixes (template expansion, array index not found, CSS styles)"