Add support to get an array of name_id_options

@steved555