Fix json encoding so results, features do not default to unpickleable