`fix_slice` now replaces `None` with corresponding values

For example, if start is `None` it will be replaced by a zero. If stop
is `None` it will be replaced by the length of the dimension. The code
already replaced step `None` with 1.