Finished support for basic optimization

- added unit tests for inheritance
- added benchmarks
- added thanks to dibin
- bumped version