whole load of IE8 bug fixes, plus a spot of linting
more IE8 fixes
Merge pull request #876 from ractivejs/gh-773

IE8 fixes