accept both assoc arrays as stdClass objects for enumTitles in strings