Fix hit testing for shapes that contain style change records