Fixes #3383: Added `$type` parameter to `IdentityInterface