Update the usage of tojson in templates according to the recent Flask-Admin changes

This closes #249 – for more details, see the issue report; in particular, see https://github.com/mitsuhiko/flask/blob/c502dfbbfbee49c15ce4a57f7d417b71a73a10b6/flask/json.py#L179