Put deserializebson inside a template{}

Having deserializebson inside a template statement allows the user
to alias it for different types (alias bsonStr = deserializebson!string).
Merge pull request #698 from juanjux/master

Put deserializebson inside a template{}