ensure that array and hash default values are not modified in place