Created a NameValueList helper class for sugar's weird api responses.

* created helper function because we need proper boolean and null values