detect recursive mixins

Fixes issue #40