Merge multiple categories.
Merges the categories oldcats into a single category. If newcat is specified, that new category is added if necessary, and all of oldcats are merged into it. newcat must be an existing category in obj if obj is ordinal.
If newcat is not provided, all of odcats are merged into