Maintain subclasses of Hash when calling Hash#slice.