#134 fixed index creation
#121 throw XOException if non-registered type is used