removed dependency on BSON by switching to native Ruby marshalling instead