Allow long integers for axes and window length arguments

Fixes issue #2855