Add categorise and categorise_unique
Rationalised categorise function.