Extended foreach to include callable objectss