Fix class variable $locations datatype

addresses #35