Add a helper to dump task attributes.

To help with #660.