assert types using type (and not isinstance) to rule out subtypes
BSON: cast marshalled data to str/bytes, fix loads function
pass encoding directly to dump function
wrap erratic py2 YAML behaviour
update changelog
update changelog