Double precision for solvePnPRansac()

solvePnPRansac() and pnpTask() now accept object or image points with double precision.
Added cast and removed formatting error
Fixed C++11 compatibility warning
Merge pull request #2948 from PhilLab:patch-1