model: allow the setting of a field renderer through an attribute

fixes #370