fix Issue 5749 - argument evaluation order of chained function from right