Support class/module defined with Class.new/Module.new in AccessControl

This fixes #434.
Merge pull request #436 from yujinakayama/support-class-new-in-access-control

Support class/module defined with Class.new/Module.new in AccessControl