General Type Fix

- Changed type spec from int[] to Object[]
- Modified exception classes
- Added GetNext() function