Closes #3397: footerFormat does not replace variables

Abstracted tooltipHeaderFormat to process footer or header (now called
tooltipFooterHeaderFormat)
Fixed #3279, column z issues in 3d
Merge remote-tracking branch 'upstream/master'