[util][math] fix return type of sqrt for fundamental number types