Completed declare_function() functionality.

declare_function() now properly parses and handles function attributes
and names -- hopefully, in an at least meagerly efficient manner.
declare_global() is also been improved for generality. Next up:
declare_alias() and corresponding PCREs.