vec: Replace get calls with index operator []

vec ‘get’ method was deprecated and removed in recent nightlies