[core] Fix service instance variable being included when doing model.to_json