Added Environment.clone() and Environment.tryMerge()