Migrate RAQL queries from Version 3.7 to 3.8

In version 3.8 significant changes to RAQL have been introduced that require changes to existing RAQL queries from 3.7 or earlier. These changes affect plain as well as analytic functions.

Note: In a few cases, the functions listed are supported but the parameters or the semantics of the function have changed sufficiently that queries may need updates to perform as expected.