fix rdbcache init core
fix some final issues with 64bit stuff
mem fix
Merge branch 'diffbot-testing' into testing