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 [WIP]
[WIP] Tentative fix for bug 8008

*** To be tested before committing, please rebase&&edit later ***
http://hercules.ws/board/tracker/issue-8008-copyarray-fail-on-a-referenced-array-argument/
Added some callsub tests to the script testsuite

Signed-off-by: Haru <haru@dotalux.com>
Fixed segfault, special thanks to Ind [TO BE REBASED]
Some little modifications, to be reviewed