Fix select and radio options to render an object or array