Added support for managed struct