Fix bugs with prefix and inheritance; add inheritance tests.
release v0.0.5