Clone locale definitions to prevent instances influencing each other

This should fix Issue #116.