The natives picking all units in a rect (GetUnitsInRectAll(), GetUnitsInRectMatching(), etc.) are bugged: They don’t pick units located in the bottom 32 Y-coordinate-range.
For instance, when you create a rect ranging from Y = 0 to Y = 256, the natives will only pick units located between Y = 32 and Y = 256.
This has been the case at least since patch 1.32, maybe longer.