Add fast accessor methods for classes.