Enhanced transient function wrapper to allow it to be applied to instance and class methods and fixed suppressed exception when target of transient function wrapper was wrong. #13 #14