Ability to set Gson instance

Fixes #14