Fixed issues related to the changes in enum usage.
bug fixes related to changes in the way automatic conversion from array to slice was disabled in the language.
removed some warnings.