MCRegisterClass should be returned by const ref, not by value.