Ability to use alternate dump functions

In most cases functions such as print_r provide much more readable output than var_dump.  Some might also want to use var_export or write their own dump function.  This should be a simple change that does not cause any BC breaks.