Do not discard userdata that is passed in the identity

Hello! I implemented and would like to apply the patch referenced in issue #14.