Improve Show implementation for objects and functions