Optimised constant replacement of categoricals and numericals in missing()