Fix lookup auto_resize bug caught by unit tests.
Fix lookup auto_resize bug caught by unit tests.

Compare one less than AUTO_MIN_CAPACITY with thresholds if "len" is less than
this constant.

bairyn/opencurry,bairyn/opencurry