Fix Area to GlobalArea Flip Flop

Fix Area to GlobalArea flip flop

If an Area is changed into a GlobalArea in a theme file, or if a new
theme is installed which has an GlobalArea with the same name as an Area
in the previous theme, the view will alternate display of the Area and
GlobalArea after every other page load.

The is true if the reverse is done and a GlobalArea is changed into an
Area of the same Name

- Add `$arIsGlobal = null` parameter to `Area::get()`
- Store seperate cache for when 1 is passed into `$arIsGlobal` to
  seperate caches
- Pass in `arIsGlobal` table field when rescanning area permissions to
  avoid filling the cache with the wrong one
Update `Area::get()` docs

Update `Area::get()` docs
Merge pull request #1246 from mkly/fix_area_global_flip_flop

Fix area global flip flop
Fix Incorrect var in SQL Loop

Fix Incorrect var in SQL Loop
Merge pull request #1247 from mkly/fix_area_global_flip_flop

Fix Incorrect var in SQL Loop
Revert Protected Properties in Select Attribute

Revert protected properties in `SelectAttributeTypeController`

Causes issues with code in the wild that attempts to carry over private
properties
Merge pull request #1248 from mkly/revert_protected_properties_in_select_attribute

Revert Protected Properties in Select Attribute