Add support for custom allocators in Conversion library