Custom delete behavior for Functions.  Completes #187.  Fixes #188