Adding name formatting functions to Named trait

Also made the ObjectGroup trait explicitly use the Named trait
as so much of its functionality depends on things having a $name
property.