Add license to pugicast.h
Use pugixml for groups
Fix bug when casting to uint8_t

Using lexical_cast from string to uint8_t doesn't cast the string to a
numeric value, but the ASCII value of the number in the string.