bug fix on conditional statement

    if PROPERTIES.member? key

becomes

    if PROPERTIES.member? key.to_sym

to fix a bug where if the hash provided to Object.new contains String keys, the instance variables are not actually set on the Object. (i.e. the conditional statement requires Symbols, and doesn't recognise Strings). This is important when e.g. Object.new(json_from_server)