set_weak_flag changed to have separate flags for indices and values. Also fixed a leak. Rev: src/builtin_functions.c:1.371