fix #42 vm crash when putting classes using writeReplace into ArrayList, HashMap