ENH: added parameter to use periodic x-coordinates

`compiled_interp` casts all its inputs to `np.double`, so you might as well do the same in these calls to `np.asarray`: if you don't, and get passed in a list of ints, you are first going to create an array of ints, and then copy it into an array of doubles.