Changed error code to XC0119
Added tests for p:json-join
Tests p:JSON-join/@flatten-to-depth is handled correctly: Only positive int or 'unbounded' allowed.