Improved support for simple types