Added common::clone to shallow-clone a simple object, array or arguments object.

Modify mergeSettings / accuSettings to ignore inherited properties.