fix array/slice behavior when start/end is higher than array length. see #170