Merge fix for TRQ-2067 - crash on startup around failed malloc. Added unit test.
Merge branch '4.2-dev' of https://github.com/adaptivecomputing/torque into 4.2-dev