[UnitIndexer] added handlers for onIndex and onDeindex (#4)* added handlers for onIndex and onDeindex* added int, real and bool overloads for the print function