Added the necessary statements to support the dynamic invocation related resource management of query spiffs. By this commit, the predicate eval spiff is functional, with decent speedup observed on query 6.