Add toString methods for debugging.