Changed cbegin() to begin(): macs don't like them. Re #6595.