Try putting the code for the new function in its own SQL file, drop the function and create the new one.
I think I did that. I fixed the relevant portion of /www/doc/sql/pl-sql.sql, then un-commented the "drop function" line, then sourced the file via:
psql>i /www/doc/sql/pl-sql.sql
DROP
CREATE.