Some of the X-cart classes use Symfony types directly. I also tried to wrap Symfony type in the same manner the X-cart classes do. None of these helped.
What did work though is switching to the way described here:
http://devs.x-cart.com/en/basics/model_editing_page.html
It seems to be the older approach, but it works.