Show diff in error msg when repr is long.

Cleaned up #18 into a single patch.