[#2810] Add support for the REVERSE() function, where it is supported