fix inheritance with block-style nested routes
added tests for inheritance when using block style
contributions