Improve width computation for MathML elements (issue #558)

This fixes the width computation for MathML elements, and adds an extension to look for changes in widths due to a web-font arriving after the math has been typeset (in all three output modes).