Fix for registeredClasses crash during program launch

Fix for Issue #364 
Due to possible buffer overrun when number of classes increases between calls to objc_getClassList.
Cool. You can just add commits to this branch to updated the pull request.