adds constness for items in container classes