Put deserializebson inside a template{}

Having deserializebson inside a template statement allows the user
to alias it for different types (alias bsonStr = deserializebson!string).