Fixed Thread::__stub return path `bug`.
Added foundation::optimized_destruct.
Added sanity checks to memory routines.
Fixed builtins macro issue.
Implemented forgotten foundation::Array dtor.
Added optimized_destruct calls to foundation::Array.
Added foundation::thread_safe::Queue.