Be defensive to ensure the dictionary sent to Unity is as expected