Added support for hierarchical object detection, added explicit coordinate types