Cast Location pos and size to integers

Fixes issues with numpy types being passed around to things
that don't understand them.