misc. updates/fixes

createGarrison: decreased default # of units to buildings/4
taskCrew: declared private variables
taskDefend: fixed treshold variable not working
taskLand: added comments
caching: tweaked according to new global versions of hideObject/enableSim in A3 1.12
attachChem: fixed return