A Select Rank construct has been proposed, to go along with Dimension(..). It might also be useful independently from Dimension(..), in include files.