Fixed a bug involving 'selected' in _get_sampleref_options.