Allow flask.json to encode WSME types