added implementation of switch/case constructs

Modified   src/objectscript.cpp
Modified   src/objectscript.h