Refined GetAttribute and GetArgument extensions for metadata and psi level.