I'm not sure, shouldn't the argument to ToLuaValue() be "a" and not "context"?