Use clone() instead of copy module.

Copy module doesn't call constructor of CaseInsensitiveDict, resulting
in random errors because lc is not definied.