[FOLD] Add testcase for lexicalCast with large inputs
[FOLD] Enhance beast::lexicalCast and fix corner case handling