Support for deep inheritence.

- also test for it
Bumps version and updates build.
Merge branch 'release/0.3.1' into develop