#98747: fix broken rand() (and all other formula based) filters, as well as properly fixing the pgsql thing (backported from drupal 5 branch)