Ensure VasException.code is always an Integer

Fixes #12
Merge branch 'numeric-code'