Improve Ops.index to make nicer code
improve assign to simplify call with single index