Fix replacement of functuion name when PACKAGE_AS_SCHEMA is disabled.