Add support for switchInstGetNumCases
Support for string ostreams
Fix instruction order in test case