Sourced routine implementation

A routine that is implemented with a sourced routine implementation is one that duplicates the semantics of another function, called its source function.

Currently only scalar and aggregate functions can be sourced functions. Sourced functions are particularly useful for allowing a distinct type to selectively inherit the semantics of its source type. Sourced functions are essentially a special form of an SQL implementation for a function.