Fix bug 8036
http://hercules.ws/board/tracker/issue-8036-gate-of-hell-over-powered/
Fix bug 7074
http://hercules.ws/board/tracker/issue-7074-suragoh-issues/
Fix bug 6866
http://hercules.ws/board/tracker/issue-6866-gate-of-hell/?gopid=15411#entry15411

Remove cast, after cast and cool down of All Odin Power as aegis info.
All Odin Power is now watk and it's show the matk in the status window.
http://hercules.ws/board/tracker/issue-7715-odins-power-lvl-2/

Fix Insignia consume the item correctly and can't be cast on Land Protector.
Ref redesign, part 1

- Moved string and numeric mapregs into the same DBMap (for consistency
  with the other reg types.)

Signed-off-by: Haru <haru@dotalux.com>
Ref redesign, part 2

- Reorganized regs var/array DBMaps into a specific reg_db structure

Signed-off-by: Haru <haru@dotalux.com>
Ref redesign, part 3

- Updated several functions to properly use the data structures defined
  in parts 1 and 2.
- Special thanks to Ind for his help on this, as well as the previous
  two parts.
- Fixes some crashes related to variable references passed back and
  forth between nested callfunc/callsub scopes (related: 2669e9a,
  3259f89, 4f2de07)

Signed-off-by: Haru <haru@dotalux.com>
Corrected same-reference check to work on vars with the same name in different scopes

- Fixes bugreport:8008, special thanks to KeyWorld
  http://hercules.ws/board/tracker/issue-8008-copyarray-fail-on-a-referenced-array-argument/

Signed-off-by: Haru <haru@dotalux.com>
Added some callsub tests to the script testsuite

- Also includes testcases for the recent ref fixes/changes.

Signed-off-by: Haru <haru@dotalux.com>
Minor whitespace fix

(trying to trigger a HPM Hooks rebuild missing from my previous commit)

Signed-off-by: Haru <haru@dotalux.com>
HPM Hooks Update

Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>