Fixed a deadlock on arrays found in regressions. Added
lots of debug code to be able to zero in on the source
of the deadlock TRQ-1835
Merge branch '4.1-dev' of https://github.com/adaptivecomputing/torque into 4.1-dev