fixed methodcacher for old ruby