Generate Integer not int from \d

I realise that the generated int was a design choice but hope you agree this is an improvement.