Changed a few ADD_FUNCTION() to ADD_FUNCTION2(). Fixed a few flag bugs in the process. Rev: src/builtin_functions.c:1.307