I've just pushed the disable byref Datums patch I posted earlier. I only made a small adjustment to make use of the TupleDescAttr() macro. Önder, thank you for the report.
With this commit, I re-run the query patterns where we observed the problem, all looks good now. Wanted to share this information as fyi.