* Refactor NativeContext * Fix bugs * Use correct counts * Check index using register count constants