(DerivedShapeStore.__init__): Raise an exception if the number of shapes is different from the number of rows in the table. Address RTbug #1933.