make resize of flat objects fail in the direction normal to the flat.
also fail on resize to negative size.
update tests