[doc] fixes for identity in docs/examples

now uses resource_identity and/or resource_pretty_or_uuid style
also now allows identity to be a single ref instead of anyOf
closes #30