Refactoring of CPU

Added type check in GETFIELD, STV,SETFIELD instructions.