Fixed unsave casts in getScopes() and getAuthCodeScopes() & Add addition...

...al vars to Array in getScopes()