Fix bugs in ForcedTransformedShapePlugin from DM-1010.

Also upgrade diagnostic messages to make it easier to find
bugs like this.