Allow widths represented by subclasses of int and throw an exception instead of aborting if the wrong types are given.