copy plugin-state from template on session creation (amend 3353b48)