add missing check to DROP FUNCTION/AGGREGATE, fix unit tests
separate schema tables for functions + aggregates
eager resolve of scalar functions used by aggregate