Improve the replacing of grid config and assistants
KisDocument will emit a signal to notify the change to grid config. Assistants are cloned using cloneAssistantList().