Improve @contextDump helper to format functions same way for all environments