add iterator for vector implemented by lua