Added tests, added support for in-place struct bindings.