Revert "SERVER-5424 use NumberInt function template in mongoToV8Element"

This reverts commit 4a3d5aa6f430530b8a44e581c430176e15da19c2.