ENH: safety bounds checks for take funcs

as per #3028