perf(shallowCopy): use Object.keys to improve performance

This change is not IE8 friendly