Make unit contructors work with numpy integers