Set proper CheckAccessControls#currentClass when in prototype OBJLIT

Fixes #495