Fix compatibility of Material objects with url_for.
Do not explicitly require us to use the .id of virtual items, for symmetry with the rest of Rails.