Make a deep copy of behaviour dictionaries to prevent shared instances.