Improved support for object creation from xpath.