Change nMaxStakeAge back to unsigned int and put back in typecasting in wallet.cpp and kernel.cpp