Fix prepended module detection.

On ruby 2.0, when a module was extended onto itself,
we wrongly considered it to be a prepended module.

Fixes #672.