Fixed support for single stage in Versioned

This used to work in 2.4, so is considered a regression.
To test, simply add a Versioned("Stage") extension to
some record in 2.4 vs. 3.1.
Merge pull request #2604 from chillu/pulls/versioned-single-stage

Fixed support for single stage in Versioned