make circshift more type stable; fixes #7503