minor improvement to class/c: generate a little bit less code