Added some variable tests to help pintpoint scope problems.
Making scopes an object instead of an array.
Scopes are now stored in an object.