Date: Support other numbering systems than `latn`

Fixes #356
Date: Move outOfRange to a separate file and simplify build script