fixed; utils.clone retains RegExp opts

closes #1355