Make DataElement methods const where possible.