(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.
I don't know what `>` and `<` would do when comparing types, but `type_of($one) == type_of($two)` makes sense.