Fixed errors.

-Fixed error in foreach loop.
-Fixed error when printing boolean values.
-Fixed error when calling panic.