security: Fix bug in IdentityManager.sign, need to pass target as the array to sign.