Correctly take Item#matrix into account in #getPathData().