core: remove CreateFunction from Analyzer, fix label test ; db_text: simplify label iteration