Fix handling of origin classes under Rubinius.