fixed inherits override
fixed inherits loops
0.5.3
added tests