*BACKPORT* [3600057]: Filled out missing parts of implementation of [string is double].