v.23.9Performance Improvement

Performance Improvements in toString Execution for Non-Datetime Arguments

Since we use separate instructions for executing toString with datetime argument, it is possible to improve performance a bit for non-datetime arguments and have some parts of the code cleaner. Follows up #53680. #54443 (Yarik Briukhovetskyi).