better error msg for 'missing serialize REPR function'