Bump version for 0.5.0-dev
Fix pickling for pypy