Imported 1.8 mode Melbourne extension from Rubinius.