Fixed a bug in the variable's reference object.
Added a check in array's methods 'shift' and 'pop' to return a Nil object on empty arrays.