Auto-correct class-level trivial accessors

cc @tamird