Correctly transform Item#pivot when #matrix is applied to an item's contents.

Closes #452 and defines unit tests to cover this bug.