fixes #800. check instanceOf new Primitive(), not typeof
Merge pull request #802 from ractivejs/gh-800

Fixes #800. check instanceOf new Primitive(), not typeof