[FIX] VS2013 compile fixes

again some compile fixes for our dubious writtenDigits template