Warn on blocks with names that are never used

[closes #885]
Fix test for deprecation warning
Merge pull request #1489 from visionmedia/error-on-invalid-block-names

Warn on invalid block names