[scala] update Reference.simplify comments
[ocaml] enable THIS,PARENT,ROOT keywords; add syntax-error examples