support dumping and loading strcuts on 1.8.7 and rubinius