Turn runtime checks into compile-time ones
Merge pull request #308 from dottedmag/master

Turn run-time checks into compile-time ones