tweaked errorcodes.py to ignore cmake build directories #869
fixed two bugs around capped collection sizing #934

One was a bad cast from long long down to int, the other was that
we didn't convert BytesQuantity from a string again on deserialization.

fixes #934