Fix function resolution. When adding a type-specific function as a modified "clone" of a polymorphic function, add it just before the "cloned" function and not at the start of the list.  This makes that the order of function resolution for default return types will stay the same. This fixes bug 3051.
Fix function resolution.
When adding a type-specific function as a modified "clone" of a
polymorphic function, add it just before the "cloned" function and not
at the start of the list.  This makes that the order of function
resolution for default return types will stay the same.
This fixes bug 3051.

zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb