Changes
::isTerminated to detect fatal errors and uncaught exceptions
cast pthreads objects to array
implement count on pthreads object
implement selective inheritance (control what is available in the threaded context)
fix crash when undefined dimension is accessed
fix state detection when crash encountered