(MODULES-1473) Deprecate type() function for new parser

The `type()` function will cease to work on the new parser because 'type' is a reserved keyword. The `type3x()` function may be used to continue similar functionality, but will be deprecated in favor of the built-in typing system.

The `type_of()` function has been included to introspect types in the new parser.
"Returns the type of a value" (it is not limited to variables, it can be used on a literal as well as on types; e.g. 'any value').