Add coverage via istanbul
Begin improving test coverage

This also fixes #1425 (which was pretty obvious once it was covered by a
test case) and adds some more constant detection
Merge pull request #1427 from visionmedia/coverage

Coverage