Added optimized version of pushFunction for trivially destructible objects