Merge "Fix fitWithinBounds to actually apply stack bounds."