Fix ensure_new_type with long input

`ensure_new_type` fails when given input with type `long`. Given that it converts `int` to `newint`, I assume that `long` should do the same thing. This fixes a test error on 32-bit installs (where a `long` is created more readily).