Added getX and setX methods to all struct classes, deprecated old methods (#437).