fixes #1494, borrows test case from evs-chris:gh-1494
Merge pull request #1531 from ractivejs/gh-1494-b

fixes #1494, borrows test case from evs-chris:gh-1494