fix collecting outputs of versioned resources

(still a spiky code path.)