Adds support for dynamically added functions/methods to TClass - neat use of PHP's Closures! This is all untested, so don't use it just yet!