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

This fixes #434.

I'll rebase this branch once #433 is merged.