Removed some unnecessary std::shared_ptrs.
Fixed an unused variable warning.
const const const
Keep OpCodes used in VM switches consecutive.
I prefer capital hex digits.
const
Refactored out some common code.
const
Use for-each instead of indices.