Fixed two bugs.

extend didn't properly copy nested objects and pruned commits didn't keep track of the comment count.