Fixes for [1:end] syntax.