Calculating stretch bounds in shape.
Simplified and corrected basic shape render/hittest.