If you write a function and need stable behavior use m[x,, drop = FALSE]. Problem solved.
No need of tideverse (which comes with its own surprises).