Fixes #8005 - Convert allowed NIC types to strings

@tstrachota could you please check? If you use zeus you can reproduce the autoloading issue by running
```
zeus test test/functional/unattended_controller_test.rb
```
I'll add the mapping since this fixes an issue I introduced in https://github.com/theforeman/foreman/pull/1848