Send the old category and language types to Parsoid for back compat

Change-Id: If67d822e1a22bc24aa0c816952081dc614f6e686
(cherry picked from commit 3ed7bb16a652abb34a83a3911fc65e03c892ddf3)