Added support to clear all defintions in a Function without creating a new object