Update example for 0.9 API change on identity

Following 7ece159a1d70d036bc5beecb88c3920def8cd547, I just moved
identity outside of the class.
Update example for API change on Id

Id lost its phantom type parameter in
3a0a372c7a46dbfd6a389866c2c1f6e17af05af1 - update example for this.