Fixed bug in BasicBSONEncoder.putObject reporting inaccurate size of encoded object.