Fix passing options to Model.set. DEB-11845

@sgerendla Could you please review?