Merge pull request #2261 from Wolf480pl/template

Converted most Spout Math classes to templates.
Started working on integer vector templates.