Fix indentation of docstings
Fix errors raised with `resolve_model_string`

It now raises `ValueError` for a badly formatted string, and `NameError`
if it can not find the model. Error messages are not translated. Edit
handlers now use the function.