using dart_api.h’s api for map handling. Removed obsolete cidart::isMap()
moved DartException to DartTypes. throwing on a bad getNumber call (so all parsing should go within try/catch)