Using the wrong type of pipe can lead to toxic chemical leaching, burst pipes, and costly water damage. Here’s what to know so you can pick the right pipe for the job.