[lua] Template wrapper for variable getter
[lua] Template wrapped variable getter handles non primitive objects