Fix a bug that nested teardown block order

`:before => :prepend` callback should work with inheritance.

GitHub: fix #85

Reported by TOMITA Masahiro. Thanks!!!