cppcheck: rewrite pointer arithmetic in accessors
schema: unify all instances of programid and seriesid to varchar(64)

Was mixed varchar(40) and varchar(64) with 40 characters not being
enough for CRIDs made up of a domain name as authority plus a
UUID.
Should unbreak duplicate detection for networks using such long CRIDs.