Rewrite converter with tests

TODO:
- More tests
- Proper constant support
- Non-scaloid view support
- <view/> tag support
- Comments?