rubinius supported for encoding subclassed Hash