Added support for reference objects using new decoder type