Make stacked @mock_imports work bottom up.

Fixes #9.