Fix typo in JsonValue which broke the conversion to uint and add test case