Fix SQL generator and queries test for null/not null collections.
Fix IQL tests.
ProfileManager should be closed to put connections back in pool.
Merge pull request #743 from rnsmith/emma

Emma - fix broken ObjectStore tests