Water heaters with tube heat exchangers