PUB-756 : refactoring code generator handling large categoricals.

The code now explicitly force load of subclasses containing additional
categorical values.