fix(account): filter account.toJSON

Fixes #1975.

@shane-tomlinson or @vladikoff r?