Feature. New onlyif validator and bugfix for duplicate key

- New onlyif validator (only allow value set if other field has value)
- No longer crashing the daemon on duplicate keys