(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.