app_lua: sr.xavp.get() allow get all values of a var and <0 indx
app_lua: remove duplicate code and merge functionality for sr.xavp.get