diff --git a/Library/Variable.php b/Library/Variable.php
index <HASH>..<HASH> 100644
--- a/Library/Variable.php
+++ b/Library/Variable.php
@@ -140,6 +140,14 @@ class Variable
      */
     public function __construct($type, $name, $branch, $defaultInitValue = null)
     {
+        switch($type) {
+            case 'callable':
+            case 'object':
+            case 'resource':
+                $type = 'variable';
+                break;
+        }
+
         $this->_type = $type;
         $this->_name = $name;
         $this->_branch = $branch;
Added Variable support like for Callable, Object, Resource