Added C++ Wrapper for lua refrences.