Various tweaks, mainly to the SELECT function.
1. Moved some IDL lookups out of a loop where their results were loop invariants.
2. Narrowed the scope of _alias.
3. Eliminated some calls to jsonObjectToSimpleString() and strdup(), along with
the associated mallocs and frees.
4. Eliminated a couple of needlessly repeated calls to jsonObjectGetKey() by
caching the results of the first ones.
5. Uncommented a couple of commented-out calls to jsonIteratorFree(), because
I don't see anything wrong with them.
6. Moved another commented-out call back into a scope where it would compile
if uncommented (but left it commented out for now).
git-svn-id: svn://svn.open-ils.org/ILS/trunk@12081
dcc99617-32d9-48b4-a31d-
7c20da2025e4