Create name() and type() methods on a PropertyModel.