fixed bug with types plugin breaking flat get_json