Implemented stack guard with std::priority_queue, now it is possible to allocate and deallocate lua::Values in any mixed order