Add serialize instances to contexts